<?php
require_once WEB_ROOT. '/application/library/Bus.php';

class Bus_Order extends Bus {
    protected $_name = "orders";
    
    protected function _init() {
        
    }
    
    public function insertOrder($user_id, $status_id=1) {
        $data = array(
            'date_create'  => date("Y-m-d"),
            'users_id'     => $user_id,
            'status_orders'=> $status_id
        );
        return $this->insert($data);
    }
    
}
?>